import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from './../Home'


import NotFound from './../components/views/NotFound'
import Test from './../components/views/Test'
import Test1 from './../components/views/Test1'
import Test2 from './../components/views/Test2'

Vue.use(VueRouter)

export default new VueRouter({
    routes: [
        {
            path: "/",
            component: Home,
            name: "测试主菜单1",
            children: [
                {
                    path: '/test/:testId',
                    name: "测试带参数",
                    component: Test,
                },
                {
                    path: '/test1',
                    name: "测试1",
                    component: Test1,
                },
                {
                    path: '/test2',
                    name: "测试2",
                    component: Test2,
                },
            ]
        },
        {
            path: '*',
            component: NotFound,
        },

    ]
})